<?php
namespace view;

class Loginview {
	private static $sessionLoggedIn = "loggedin";
	private static $getLogout = "logout";
	private static $sessionLoginCookie = "sessionLoginCookie";
	private static $login = "login";

	/**
	 * @return boolean
	 */
	public function getLogoutInfo() {
		return isset($_GET[self::$getLogout]) 
			&& isset($_SESSION[self::$sessionLoggedIn]);
	}

	public function setSessionLogin() {
		$_SESSION[self::$sessionLoggedIn] = true;
	}

	public function getLoginInfo() {
		return isset($_GET[self::$login]);
	}
}
?>